package com.senyin.service;

import com.fasterxml.jackson.databind.ser.Serializers;
import com.senyin.common.BaseResponse;
import com.senyin.entity.StaffInfo;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.util.List;

public interface StaffInfoService {
    /**
     * 登录
     * @param siId
     * @param password
     * @param request
     * @return
     * @throws SQLException
     */
    BaseResponse login(String siId, String password, HttpServletRequest request,String captcha,String code) throws SQLException;

    BaseResponse<List<StaffInfo>> showAll(StaffInfo staffInfo) throws SQLException;

    BaseResponse addStaff(StaffInfo staffInfo,HttpServletRequest request) throws SQLException;

    BaseResponse modStaff(StaffInfo staffInfo,HttpServletRequest request) throws SQLException;

    BaseResponse delStaffByUUID(String siUUID,HttpServletRequest request) throws SQLException;

}
